package {
	import org.uiue.text.BitmapTextField;
	import flash.text.TextField;	
	import flash.text.TextFormat;	
	import flash.display.Sprite;	
	
	/**
	 * @author yaowei
	 * @version 1.0.0
	 * blesswall@gmail.com
	 * 20080913
	 */
	public class BitmapTextFieldExample extends Sprite {

		public function BitmapTextFieldExample() {
			
			var btf:BitmapTextField = new BitmapTextField();
			addChild(btf);
			btf.width =200;
			btf.height =100;
			btf.x = 100;
			btf.y = 110;
			btf.border = true;
			btf.wordWrap = true;
			btf.multiline = true;
			btf.rotation = 30;
			btf.defaultTextFormat = new TextFormat("Arial",24,0xff9900,true);
			btf.text = "Hello BitmapTextField";
						
			var itf : TextField = new TextField();
			addChild(itf);
			itf.width =200;
			itf.height =100;
			itf.type = "input";
			itf.border = true;
			itf.defaultTextFormat = new TextFormat("Arial",12,0xffffff,true);
			itf.text = "Hello BitmapTextField";
			itf.addEventListener("change", function():void{
				btf.text = itf.text;
			});
		}
	}
}
